document.getElementById('applyChanges').addEventListener('click', function () {
  chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
    chrome.tabs.executeScript(tabs[0].id, {
      code: `
        (function() {
          const videoPodBody = document.querySelector('.video-pod__body');
          if (videoPodBody) {
            videoPodBody.style.maxHeight = '70vh';
          }
        })();
      `
    });
  });
});
document.getElementById('resetChanges').addEventListener('click', function () {
  chrome.tabs.query({ active: true, currentWindow: true }, function (tabs) {
    chrome.tabs.executeScript(tabs[0].id, {
      code: `
        (function() {
          const videoPodBody = document.querySelector('.video-pod__body');
          if (videoPodBody) {
            videoPodBody.style.maxHeight = '250px';
          }
        })();
      `
    });
  });
});
